home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
STRINGS
/
PACKAGE6
/
INITSTR.DOC
< prev
next >
Wrap
Text File
|
1990-07-25
|
1KB
|
36 lines
----------------------------------------------------------------------------
InitializeString
----------------------------------------------------------------------------
declaration: procedure InitializeString (var AString:
TypeString);
purpose: Initializes AString and fills it with blank spaces.
preconditions: none
postconditions: AString if filled with blank spaces.
special cases: none
example: var
Character:
char;
Name:
TypeString;
begin
.
.
.
write (output, 'Enter the character: ');
readln (input, Character);
InitializeString (Name);
ChangeCharacterToString (Character, Name)
.
.
.
end
----------------------------------------------------------------------------